/**
 * @Author       : cxh
 * @Date         : 2021-12-29 13:29:38
 * @LastEditTime : 2021-12-29 13:30:40
 * @LastEditors  : cxh
 * @Description  : 处理跨域问题
 * @FilePath     : \vue_WorkSpace\egg-wpt-server\app\middleware\dcors.js
 */
'use strict';

module.exports = () => async function dcors(ctx, next) {
  await next();
  ctx.set('Access-Control-Allow-Origin', '*');
};
